import request from '@/utils/request'


// 获取最后一次会话以及会话记录
export function listOpenaiLog(query) {
  return request({
    url: '/api/log/openai/list',
    method: 'post',
    data: query,
    isQuery: true,
    timeout: 200000
  })
}



export function delOpenaiLog(ids) {
  return request({
    isLoading: true,
    url: '/api/log/openai/delete',
    method: 'delete',
    data: {
      ids: ids
    }
  })
}


export function listFuncallLog(query) {
  return request({
    url: '/api/log/funcall/list',
    method: 'post',
    data: query,
    isQuery: true,
    timeout: 200000
  })
}

export function getFuncallLogDetail(query) {
  return request({
    url: '/api/log/funcall/getDetail',
    method: 'post',
    data: query,
    isQuery: true,
    timeout: 200000
  })
}


export function delFuncallLog(ids) {
  return request({
    isLoading: true,
    url: '/api/log/funcall/delete',
    method: 'delete',
    data: {
      ids: ids
    }
  })
}
